<template>
	<view class="page">
		<view class="title">
			快递信息
		</view>
		<view class="cell-item">
			<view class="left-box">
				快递名称
			</view>
			<view class="right-box">
				{{apiinfo.logisticsName ? apiinfo.logisticsName : ''}}
			</view>
		</view>
		<view class="cell-item">
			<view class="left-box">
				快递单号
			</view>
			<view class="right-box">
				{{apiinfo.logisticsNo ? apiinfo.logisticsNo : ''}}
			</view>
		</view>
	</view>
</template>

<script>
	import * as api from '@/utils/api.js';
	export default {
		data() {
			return {
				apiinfo:{
					logisticsName:'',
					logisticsNo:'',
				},
			}
		},
		onLoad(option) {
			let apiinfo = {};
			if(option.name){
				apiinfo.logisticsName = option.name;
			}
			if(option.num){
				apiinfo.logisticsNo = option.num;
			}
			this.init(apiinfo);
			this.apiinfo = apiinfo;
		},
		methods: {
			init:function(apiinfo){
				api.deliveryLogistics(apiinfo).then(res=>{
					
				});
				// deliveryLogistics
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page{
		background-color: #f6f6f6;
		min-height: 100vh;
	}
	.title{
		position: relative;
		line-height: 80rpx;
		font-size: 32rpx;
		padding-left:40rpx;
		background-color: white;
		border-bottom: 1px solid #f0f0f0;
	}
	.title::before{
		content: '';
		background-color: #30a875;
		width: 6rpx;
		height: 40%;
		position: absolute;
		top:30%;
		left:20rpx;
	}
	.cell-item{
		display: flex;
		justify-content: space-between;
		font-size: 28rpx;
		box-sizing: border-box;
		padding: 0 20rpx;
		border-bottom: 1px solid #f0f0f0;
		line-height:70rpx;
		background-color: white;
	}
</style>
